<style type="text/css">
<!--
	#table_monitor tr th{
		border-collapse:collapse;
		border:1px solid black;
	}
	#table_monitor tr td{
		border-collapse:collapse;
		border:1px solid black;
	}
-->
</style>
<table border="1" width="95%" class="">
  <tr>
    <th>Databases</th>
  </tr>
  <tr>
    <td valign="top">
      <table>
        <%@db_list.each_with_index do |f,i|%>
          <%if i>1%>
            <tr>
              <td><a href="/backupfiles/databases/<%=f%>" target="_blank"><%=f%></a></td>
              <td><a href="/user/deletebackup3?filename=<%=f%>">...Delete</a></td>
              <td><a href="/user/restoredb?filename=<%=f%>">...Restore</a></td>
            </tr>
          <%end%>
        <%end%>
      </table>
    </td>
  </tr>
</table>
<center>
  <form action="/user/backup" method="post">
    <input type="submit" value="Create Backup"/>
  </form><hr/>
  <%= form_tag( { :action => 'uploadbackup' }, :multipart => true ) %>
    <span class="style1">ไฟล์ .gz</span>
    <input type="file" name="pfile" id="pfile" /> <input type="submit" value="Upload Backup"/>
  </form>
</center>